<include file="Public:top" />        

	</head>
  
	<body>
    
    <div id="body-wrapper" > <!-- Wrapper for the radial gradient background -->		

        <!--left start-->
		
        <include file="Public:left" /> 
        <!--left end-->
        
        
        <!-- End #sidebar -->			
		<div id="main-content"> <!-- Main Content Section with everything -->        
        		<div  id="header_logo">{:C("SITE_INFO.name")}</div>	 		
			
			<!-- Page Head -->
			<div style="float:left; width:380px;">
			  <h2>Configuration</h2></div>
			<div class="clear"></div> <!-- End .clear -->     
                  {$msg}
                <!-- Insert -->
                <div class="content-box">				
                    <div class="content-box-header">                                          	
                      <div class="clear"></div>					
                    </div>
                    <div class="content-box-content">			
                        <div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->	
                          <form action="{:U('checkSystemConfig')}" name="insertForm" method="post" enctype="multipart/form-data" >
                             <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
                            <tr class="alt-row">
                                <th width="120">Site Name:</th>
                                <td><input name="name" type="text" class="text-input small-input" size="40" value="{$site.SITE_INFO.name}" /></td>
                            </tr>
                            <tr>
                                <th>E-mail:</th>
                                <td><input class="text-input small-input" name="service" type="text" size="40" value="{$site.SITE_INFO.service}" /></td>
                            </tr>
                            <tr  class="alt-row">
                                <th>Tel:</th>
                                <td><input class="text-input small-input" name="tel" type="text" size="40" value="{$site.SITE_INFO.tel}" /></td>
                            </tr>
                            <tr>
                                <th>Fax:</th>
                                <td><input class="text-input small-input" name="fax" type="text" size="40" value="{$site.SITE_INFO.fax}" /></td>
                            </tr>
                            <tr  class="alt-row">
                                <th>Address:</th>
                                <td><input class="text-input small-input" name="address" type="text" size="40" value="{$site.SITE_INFO.address}" /></td>
                            </tr>
                            <tr>
                                <th>Postcode:</th>
                                <td><input class="text-input small-input" name="postcode" type="text" size="40" value="{$site.SITE_INFO.postcode}" /></td>
                            </tr>
                            <tr  class="alt-row">
                                <th>Keyword：</th>
                                <td><input class="text-input small-input" name="keyword" type="text" size="40" value="{$site.SITE_INFO.keyword}" /></td>
                            </tr>
                            <tr>
                                <th valign="top" style="vertical-align: top;">Description：</th>
                                <td><textarea name="description" cols="100" rows="3">{$site.SITE_INFO.description}</textarea></td>
                            </tr>
                            <tr  class="alt-row">
                                <th>默认城市：</th>
                                <td> 
							                                省份：
								    <select id="cname" name="provcode" autocomplete="off"> 
								        <option value="-1">请选择省份</option>
								        <foreach name="allProvince" item="vo">
								        <option value="{$vo.code}" <if condition="$site['SITE_INFO']['provcode'] eq $vo['code']">selected="selected"</if>>{$vo.name}</option> 
								        </foreach>
								    </select> 
								    城市：
								    <select id="qname" name="citycode" autocomplete="off"> 
								        <option value="-1">请选择城市</option>
								        <foreach name="allCity" item="vo">
								        <option value="{$vo.code}" <if condition="$site['SITE_INFO']['citycode'] eq $vo['code']">selected="selected"</if> >{$vo.name}</option> 
								        </foreach>
								    </select> 
								  
								    <script>
								    $(document).ready(function(){
								        // 初始时的控件的值
								        var cityId = $("#cname").val();
								        var areaId = $("#qname").val();
								       
								        //城市
								        var allProvince = eval('{$e_allProvince}');
								        var allCity = eval('{$e_allCity}');
								   
								        var html = "";
								
								        function ref_component_base(curr_change_id, title, each_var, b_id, curr_id, html_val, op_attr_id, op_attr_name){
								            if (curr_change_id != '-1') {
								                // 区域
								                html = "<option value='-1'>" + title + "</option>";
								                $.each(each_var, function(a,b){
								                    if (b[b_id] == curr_change_id) {
								                        if ( curr_id != '-1' && curr_id == b[op_attr_id] ) {
								                            html += "<option value='" + b[op_attr_id] + "' selected='selected'>" + b[op_attr_name] + "</option>"
								                        } else {
								                            html += "<option value='" + b[op_attr_id] + "'>" + b[op_attr_name] + "</option>"
								                        }
								                    };
								                });
								                $("#" + html_val).html(html);
								            } else {
								                html = "<option value='-1'>" + title + "</option>";
								                $("#" + html_val).html(html);
								            }
								        }
								
								        function ref_component(){
								            ref_component_base(cityId, "请选择城市", allCity, 'provincecode', areaId, "qname", 'code', 'name');
								           // ref_component_base(areaId, "请选择分区", allArea, 'citycode', streetId, "jname", 'code', 'name');
								        }
								
								        ref_component();
								        
								        // 城市有变化
								        $("#cname").bind("change",function(){ 
								            cityId = $("#cname").val();
								            areaId = '-1';
								            streetId = '-1';
								            shequId = '-1';
								            ref_component();
								        });
								
								      
								    });
								
	    						</script>
	    						</td>
                            </tr>
                           
                            <tr>
                                <th width="120">线上支付开关:</th>
                                <td><input name="onlinepay" type="checkbox" <if condition="$site['SITE_INFO']['onlinepay'] eq 1">checked="checked"</if>  value="1" /></td>
                            </tr>
                            <tr class="alt-row">
                                <td colspan="2" valign="top" style="vertical-align: top;">微信支付信息：</td>
                            </tr>
                            <tr>
                                <th width="120">AppId:</th>
                                <td><input name="appid" type="text" class="text-input small-input" size="40" value="{$site.SITE_INFO.appid}" /></td>
                            </tr>
                            <tr class="alt-row">
                                <th>AppSecret:</th>
                                <td><input class="text-input small-input" name="appsecret" type="text" size="40" value="{$site.SITE_INFO.appsecret}" /></td>
                            </tr>
                            <tr>
                                <th width="120">商户号:</th>
                                <td><input name="shopnum" type="text" class="text-input small-input" size="40" value="{$site.SITE_INFO.shopnum}" /></td>
                            </tr>
                            <tr class="alt-row">
                                <th>支付密钥:</th>
                                <td><input class="text-input small-input" name="paypwd" type="text" size="40" value="{$site.SITE_INFO.paypwd}" /></td>
                            </tr>
                            <tr>
                                <th valign="top" style="vertical-align: top;">Other Description：</th>
                                <td><textarea name="other_description" cols="100" rows="3">{$site.SITE_INFO.other_description}</textarea></td>
                            </tr>
                        </table>
                              
                            <br>
                             <input class="button" style="text-transform:capitalize" type="button" name="BtnSave" onClick="document.insertForm.submit()"  value="Save" />&nbsp;&nbsp;
                            </form>     
                            
                            <!--<input class="button" type="button" name="back" onClick="window.location.href='{:U('index')}'"  value="返回" /-->                  	
                        </div> <!-- End #tab1 --> 
                    </div>
                </div> 
                <!--End Insert -->
			
			
			<div class="clear"></div>
			
			
			<!-- Start Notifications -->
			
			

			
			<!-- End Notifications -->
			
            <div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						&#169; Copyright 2013
				</small>
			</div>
			
			
			
			<!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div>
	
	
	
	</body>
<!-- Download From www.exet.tk-->
</html>

		

